import { director } from "cc";
import Singleton from "../ngame/util/Singleton";
import { UISceneButton, UISceneController } from "./controller/ui/场景控制/UISceneController";


export class World2 extends Singleton {

    //显示场景控制
    showSceneButton(btns:UISceneButton[]){
        director.getScene().getComponentsInChildren(UISceneController).forEach(uiScene => {
            uiScene.show(btns);
        })
    }

    //隐藏场景控制
    hideSceneButton(){
        director.getScene().getComponentsInChildren(UISceneController).forEach(uiScene => {
            uiScene.clear();
        });
    }

}

